package com.ithao.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ：seanyang
 * @date ：Created in 2019/8/12
 * @description : 封装正常返回结果 (JSON模板)
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result implements java.io.Serializable {
	// {"flag":true,"message":"登录成功"}
	private boolean flag;//执行结果，true为执行成功 false为执行失败
	private String message;//返回结果信息
	private Object result;//返回数据


	public Result(boolean flag,String message){
		this.flag = flag;
		this.message = message;
	}
}
